
package net.lab0.electron.ai;


public class GPAddNode
extends GPNode
{
    private GPNode a;
    private GPNode b;
    
    @Override
    public double getValue()
    {
        return a.getValue() + b.getValue();
    }
    
    @Override
    public String toString()
    {
        return "" + a + " + " + b;
    }
    
    public GPAddNode(GPNode a, GPNode b)
    {
        this.a = a;
        this.b = b;
    }
}
